package com.hmall.feign.clients;

import com.hmall.feign.dto.AddressDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("userservice")
public interface UserClient {
    /**
     * 根据id查询地址信息
     * @param id
     * @return
     */
    @GetMapping("/address/{id}")
    AddressDTO findAddressById(@PathVariable("id") Long id);
}
